import webpack from 'webpack';
import config from './webpack.base';

config.entry.app = [
	`webpack-dev-server/client?http://127.0.0.1:3000`,
  'webpack/hot/only-dev-server',
  'webpack-hot-middleware/client',
	...config.entry.app,
];

config.devtool = 'eval-source-map';

config.plugins = [
	...config.plugins,
  new webpack.HotModuleReplacementPlugin(),
  new webpack.NoErrorsPlugin()
];

export default config;